package com.totoro.author.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean ;
import org.springframework.context.annotation.Bean ;
import org.springframework.stereotype.Component ;

/**
 * 系统的filter配置
 * @author 80002165 @date 2017年8月2日 上午10:30:13
 */
@Component
public class GlobalFilter {
    
    @Bean
    public FilterRegistrationBean authorFilter(){
        FilterRegistrationBean filterBean = new FilterRegistrationBean(new IdentifyAuthorFilter()) ;
        filterBean.addUrlPatterns("*");
        return filterBean ;
    }
}
